微信转账单号查询转账单
根据微信转账单号查询商家转账订单的详细信息。
请求参数 | 类型 | 描述 |
---|---|---|
transfer_bill_no | string | 微信转账单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 二级商户号 |
php
$instance->v3->ecommerce->mchTransfer->transferBills->transferBillNo->_transfer_bill_no_->getAsync([
'transfer_bill_no' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/mch-transfer/transfer-bills/transfer-bill-no/{transfer_bill_no}')->getAsync([
'transfer_bill_no' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/mch-transfer/transfer-bills/transfer-bill-no/{transfer_bill_no}']->getAsync([
'transfer_bill_no' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->mchTransfer->transferBills->transferBillNo->_transfer_bill_no_->get([
'transfer_bill_no' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/mch-transfer/transfer-bills/transfer-bill-no/{transfer_bill_no}')->get([
'transfer_bill_no' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/mch-transfer/transfer-bills/transfer-bill-no/{transfer_bill_no}']->get([
'transfer_bill_no' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
mchid | string | 服务商商户号 |
sub_mchid | string | 二级商户号 |
out_bill_no | string | 商户单号 |
transfer_bill_no | string | 微信转账单号 |
appid | string | 服务商AppID |
transfer_scene_id | string | 转账场景ID |
state | string | 单据状态 |
transfer_amount | number | 转账金额 |
transfer_remark | string | 转账备注 |
fail_reason | string | 失败原因 |
openid | string | 收款用户OpenID |
user_name | string | 收款用户姓名 |
create_time | string | 单据创建时间 |
update_time | string | 状态变更时间 |
参阅 官方文档